import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/team_logos_entity.g.dart';
import 'dart:convert';
export 'package:wanxiang_app/generated/json/team_logos_entity.g.dart';

@JsonSerializable()
class TeamLogosEntity {
	late int code;
	late String msg;
	late List<TeamLogosData> data;

	TeamLogosEntity();

	factory TeamLogosEntity.fromJson(Map<String, dynamic> json) => $TeamLogosEntityFromJson(json);

	Map<String, dynamic> toJson() => $TeamLogosEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class TeamLogosData {
	late String id;
	late String logo;
	@JSONField(name: "zj_logo")
	late String zjLogo;
	late String type;
	late String name;
	late String code;
	@JSONField(name: "another_name")
	late String anotherName;

	TeamLogosData();

	factory TeamLogosData.fromJson(Map<String, dynamic> json) => $TeamLogosDataFromJson(json);

	Map<String, dynamic> toJson() => $TeamLogosDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}